package com.weipai.springboot.module.service;

import com.weipai.springboot.model.Customer;
import com.weipai.springboot.model.api.Response;

import java.util.List;
import java.util.Map;

/**
 * @Author: 曹朋飞
 * @Date: 2018/08/09 11:25
 * 
 * 客户
 */
public interface CustomerService {

    //用户注册
    Response save(String mobile, String newCode, String oldCode, String password, String invitationCode,String code);

    //分页查询
    List<Customer> selectAllByDel(int del, String search, String sort, String way);

    //查询用户详情
    Response getCustomerById(String id);

    //修改用户资料
    Response update(Customer customer);

    //删除
    Response deleteById(String id);

    //批量删除
    Response batchDeleteById(String[] id);

    //更改用户的昵称
    Response changeNickname(String customerId, String nickname);

    //重置密码
    Response resetPasswords(String mobile, String newCode, String oldCode, String password, String password2);

    //更改会员的等级
    Response changeCustomerMemberLevel(String customerId, String memberLevelId, String remark);

    //更改会员的类别
    Response changeCustomerCategory(String customerId, String categoryId);

    Response resetPhone(String customerLoginName,String password,String customerId, String newCode, String oldCode);

    //我的收益
    Response getMyIncomes();

    //我的团队
    Response getMyTeams();

    //后台分页查询用户
    Response list(Integer page, Integer size, String draw, String search, String type, String statement);

    //更改用户的信誉值
    Response changeCustomerReputation(String customerId, Integer useReputation);

    //更改用户的状态
    Response changeStatus(String id, Integer status);

    //查询某一员工的推荐客户
    Response listByAdminCode(Integer page, Integer size, String draw, String adminCode, String search);

    //授信-信誉值
    Response saveCustomerReputation(String customerId, Integer reputation);

    Response getBalance(String customerId);
}
